package net.yxsoft.bean;

import com.jfinal.plugin.activerecord.Record;

/**
 * @author zhaohaibo
 */
public class WeChatLoginDetailUser {

  private String openId;
  private String province;
  private String city;
  private String nickName;
  private String language;
  private String country;
  private String gender;
  private String avatarUrl;
  private String subscribeTime;

  public String getOpenId() {
    return openId;
  }

  public void setOpenId(String openId) {
    this.openId = openId;
  }

  public String getSubscribeTime() {
    return subscribeTime;
  }

  public void setSubscribeTime(String subscribeTime) {
    this.subscribeTime = subscribeTime;
  }

  public String getProvince() {
    return province;
  }

  public void setProvince(String province) {
    this.province = province;
  }

  public String getCity() {
    return city;
  }

  public void setCity(String city) {
    this.city = city;
  }

  public String getNickName() {
    return nickName;
  }

  public void setNickName(String nickName) {
    this.nickName = nickName;
  }

  public String getLanguage() {
    return language;
  }

  public void setLanguage(String language) {
    this.language = language;
  }

  public String getCountry() {
    return country;
  }

  public void setCountry(String country) {
    this.country = country;
  }

  public String getGender() {
    return gender;
  }

  public void setGender(String gender) {
    this.gender = gender;
  }

  public String getAvatarUrl() {
    return avatarUrl;
  }

  public void setAvatarUrl(String avatarUrl) {
    this.avatarUrl = avatarUrl;
  }

  public Record toRecord() {
    Record rd = new Record();
    rd.set("openId", openId);
    rd.set("province", province);
    rd.set("city", city);
    rd.set("nickName", nickName);
    rd.set("language", language);
    rd.set("country", country);
    rd.set("gender", gender);
    rd.set("avatarUrl", avatarUrl);
    rd.set("subscribeTime", subscribeTime);

    return rd;
  }
}
